home *** CD-ROM | disk | FTP | other *** search
/ Shareware Extravaganza - Disc 1 / ShareWare Extravaganza 1 of 4 (The Ultimate Shareware Company).iso / grprogs / gifprt32.exe / GIFPRT.DOC next >
Text File  |  1990-09-03  |  38KB  |  1,255 lines

  1.  
  2.  
  3.  
  4.      GIFPRT User's Guide                                                  9/3/90
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.                                GIFPRT User's Guide
  20.                                    Version 3.2
  21.                       Copyright (c) 1990 Edward B. Hamrick
  22.                                All Rights Reserved
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.          Please send all suggestions, error reports, and corrections to:
  50.  
  51.                                         Compuserve:    71470,3236
  52.  
  53.                                         GEnie:         E.HAMRICK1
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.      Copyright (c) 1990 Edward B. Hamrick                                 Page 1
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      GIFPRT User's Guide                                                  9/3/90
  71.  
  72.  
  73.  
  74.  
  75.  
  76.                                TABLE OF CONTENTS
  77.  
  78.      1.0  Introduction....................................................4
  79.      2.0  Prerequisites...................................................6
  80.      2.1       Hardware Required..........................................6
  81.      2.2       Software Required..........................................6
  82.      2.3       Registering GIFPRT.........................................6
  83.      3.0  Running GIFPRT..................................................8
  84.      3.1       Rotate Option        (-R)..................................8
  85.      3.2       LCD Option           (-L)..................................8
  86.      3.3       Width Option         (-W)..................................8
  87.      3.4       Height Option        (-H)..................................9
  88.      3.5       Brightness Option    (-B)..................................9
  89.      3.6       Contrast Option      (-C)..................................9
  90.      3.7       Graphics Type Option (-G).................................10
  91.      3.8       Snow Checking Option (-M).................................10
  92.      3.9       Printer Type Option  (-P).................................11
  93.      3.10      Slide Show Option    (-S).................................11
  94.      3.11      Output Option        (-O).................................12
  95.      3.12      Dithering Option     (-D).................................12
  96.      3.13      Keep Image Option    (-K).................................13
  97.      3.14      Quiet Option         (-Q).................................13
  98.      4.0  Customizing GIFPRT.............................................14
  99.      5.0  Sample GIFPRT Commands.........................................15
  100.      6.0  Changes from Previous Version..................................16
  101.      7.0  Error Messages.................................................17
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.      Copyright (c) 1990 Edward B. Hamrick                                 Page 2
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      GIFPRT User's Guide                                                  9/3/90
  137.  
  138.  
  139.  
  140.  
  141.  
  142.                                    TRADEMARKS
  143.  
  144.      GIF,  Graphics Interchange  Format, and  Compuserve are  trademarks of
  145.      Compuserve, Inc., an H&R Block Company.
  146.  
  147.      GEnie is a trademark of General Electric Company, U.S.A.
  148.  
  149.      IBM  and PC-DOS  are registered  trademarks of  International Business
  150.      Machines   Corporation.    IBM  PC,  XT,  and  AT  are  trademarks  of
  151.      International Business Machines Corporation.
  152.  
  153.      Microsoft   and   MS-DOS  are   registered  trademarks   of  Microsoft
  154.      Corporation.
  155.  
  156.      Hercules is a trademark of Hercules Computer Technology.
  157.  
  158.      Epson is a trademark of Epson America.
  159.  
  160.  
  161.  
  162.  
  163.                                 ACKNOWLEDGEMENTS
  164.  
  165.      GIFPRT was written entirely using Turbo C.
  166.  
  167.      The User's Guide was created using Microsoft Works.
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.      Copyright (c) 1990 Edward B. Hamrick                                 Page 3
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      GIFPRT User's Guide                                                  9/3/90
  203.  
  204.  
  205.      1.0  Introduction
  206.  
  207.           GIFPRT is a program that lets you display and print graphics
  208.      files that use the Graphics Interchange Format, commonly known as
  209.      GIF  files.  GIFPRT will  let you print using  almost any type of
  210.      printer, including those that support Epson and IBM 8-pin and 24-
  211.      pin graphics.  GIFPRT can also be used to display any GIF file on
  212.      almost  any type  of alphanumeric or  graphics adapter, including
  213.      MDA, Hercules, CGA, EGA, MCGA, and VGA adapters.
  214.  
  215.           Most  graphics devices are capable  of only displaying a few
  216.      colors  or  shades  of  gray, and  dot-matrix  printers  are only
  217.      capable  of displaying an array of black dots.  However, many GIF
  218.      files  contain images  with up to  256 different  colors.  GIFPRT
  219.      uses  an error-dispersion  algorithm (also called  a dithering or
  220.      half-toning  algorithm) to  try to display  the image  in the GIF
  221.      file.   This  error dispersion  algorithm takes  advantage of the
  222.      number  of colors that an adapter  can display to approximate the
  223.      colors  in the GIF file.   If you have  a VGA adapter, GIFPRT can
  224.      use  the 256 color display  capability and display images without
  225.      any need for dithering.
  226.  
  227.           There  are a many different printer and adapter resolutions.
  228.      For  instance, some printers can display 60, 120, or 180 dots per
  229.      inch,  in  either the  horizontal or  vertical direction.   Other
  230.      printers  display 72, 144, and 216  dots per inch, and yet others
  231.      display  combinations  of  60  and  72  dots  per  inch  in  both
  232.      directions.   Display resolutions can vary  from 80 by 50 pixels,
  233.      to  640 by  480 pixels,  with a  dozen resolutions  between.  GIF
  234.      files   can  contain  images  with   an  equally  wide  range  of
  235.      resolutions.     The  GIFPRT  program  contains  a  sophisticated
  236.      resolution-matching  algorithm to  match the  GIF file resolution
  237.      with the printer or display adapter resolution.
  238.  
  239.           Even  though GIFPRT handles the  most popular printer types,
  240.      you  may need  to use  a different  printer.   It is  possible to
  241.      customize  GIFPRT to handle almost any other printer (see section
  242.      4.0).
  243.  
  244.           This  User's Guide  contains some examples  of actual output
  245.      from the GIFPRT program.  These examples of actual output will be
  246.      highlighted  by a row of dots before  and after the example.  For
  247.      example, the help screen for the GIFPRT program is:
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.      Copyright (c) 1990 Edward B. Hamrick                                 Page 4
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      GIFPRT User's Guide                                                  9/3/90
  269.  
  270.  
  271. ...............................................................................
  272.  
  273. GIFPRT Version 3.2  Copyright (c) 1990  Edward B. Hamrick
  274.  
  275. GIFPRT is a program that lets you print GIF (Graphics Interchange Format)
  276. files on a wide range of dot matrix printers and graphics displays.  It uses
  277. dithering to display continuous-tone images, and has a sophisticated method
  278. of adjusting for different screen and printer resolutions.
  279.  
  280. Usage: GIFPRT [options] [files]                where [options] are:
  281.  
  282. -R     rotate image 90 degrees          -L     LCD screen (black on white)
  283. -Wn    width multiplier [1..999]        -Hn    height multiplier [1..999]
  284. -Bn    brightness [1..9]                -Cn    contrast [1..9]
  285. -Gn    graphics type [0..15]            -Mn    snow checking mode [0..1]
  286. -Pn    printer type [0..9]              -S     slide show
  287. -On    output option [0..32767]         -Dn    dithering option [0..1]
  288. -K     keep image on screen after exit  -Q     quiet mode
  289.  
  290. and where [files] can contain wildcards.
  291.  
  292. Example:  The command GIFPRT -S -G4 *.GIF will display a slide show
  293. of all GIF files in the current directory using a 4-color CGA
  294. display mode with color halftoning (dithering).
  295. ...............................................................................
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.      Copyright (c) 1990 Edward B. Hamrick                                 Page 5
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      GIFPRT User's Guide                                                  9/3/90
  335.  
  336.  
  337.      2.0  Prerequisites
  338.  
  339.           The  following  three  sections  describe  the  hardware and
  340.      software  required to run the GIFPRT program, and describe how to
  341.      purchase a password to use GIFPRT.
  342.  
  343.      2.1  Hardware Required
  344.  
  345.           In  order to use GIFPRT, you will need an IBM PC, XT, AT, or
  346.      other  compatible  personal computer  with a  minimum of  256K of
  347.      memory.   GIFPRT will run at  any hardware clock speed, including
  348.      4.77  MHz, and can be loaded from  either a floppy disk or a hard
  349.      disk.    GIFPRT will  display GIF  images  on almost  any display
  350.      adapter, and on most Epson and IBM compatible printers.
  351.  
  352.      2.2  Software Required
  353.  
  354.           In  order to run GIFPRT,  you will need a  copy of MS-DOS or
  355.      PC-DOS,  version  2.0 or  higher.   You  also need  the following
  356.      GIFPRT files:
  357.  
  358.           GIFPRT.EXE     Main GIFPRT program
  359.           GIFPRT.PR1     Epson 8-pin 60 dot-per-inch print commands
  360.           GIFPRT.PR2     Epson 8-pin 120 dot-per-inch print commands
  361.           GIFPRT.PR3     Epson 24-pin 180 dot-per-inch print commands
  362.           GIFPRT.PR4     IBM 24-pin 180 dot-per-inch print commands
  363.           GIFPRT.PR5     Same as GIFPRT.PR1 but smaller print area
  364.           GIFPRT.PR6     Same as GIFPRT.PR2 but smaller print area
  365.           GIFPRT.PR7     Same as GIFPRT.PR3 but smaller print area
  366.           GIFPRT.PR8     Same as GIFPRT.PR4 but smaller print area
  367.           GIFPRT.DOC     GIFPRT User's Guide
  368.           GIFPRT.GIF     GIF Test Pattern File
  369.  
  370.      2.3  Registering GIFPRT
  371.  
  372.           GIFPRT is distributed via Compuserve and GEnie as shareware,
  373.      and may be evaluated for one month without charge.  If you decide
  374.      you  want to purchase GIFPRT, you  can register GIFPRT by running
  375.      it  and  following the  on-screen instructions  for registration.
  376.      GIFPRT  is fully  functional before it  is registered.   When the
  377.      program  is registered, you will receive a password that disables
  378.      the  printing  of  the  registration  request  form  whenever the
  379.      program is run.
  380.  
  381.           When  you  run  GIFPRT  prior  to  receiving  a registration
  382.      password, you will see the following message:
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.      Copyright (c) 1990 Edward B. Hamrick                                 Page 6
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      GIFPRT User's Guide                                                  9/3/90
  401.  
  402.  
  403. ...............................................................................
  404.  
  405.      Please enter  your 8-letter  password.  It should contain only the
  406.      digits 0 through 9, and the letters A through F.
  407.       
  408.      Note that you can still test all of the features of GIFPRT without
  409.      having a password  -  just enter '0' when prompted for a password.
  410.      A GIFPRT registration form  will then be printed  on your printer.
  411.       
  412.      Turn your printer off now if  you don't want the registration form
  413.      to print.  There will be a  30 second delay if the printer is off.
  414.       
  415.      Password:
  416. ...............................................................................
  417.  
  418.           If  you  haven't  yet registered  GIFPRT  and  received your
  419.      password,  enter a  zero, and you  will get  a message containing
  420.      instructions  describing how to  register GIFPRT.   If you have a
  421.      printer  connected to your  system, and if  the printer is turned
  422.      on,  a  registration  form  suitable  for  mailing  will  also be
  423.      printed.   If you  enter a valid  password, you will  not see the
  424.      message, and a registration form will not be printed.
  425.  
  426.           Once  you enter the password correctly, the password will be
  427.      put  into the file GIFPRT.PWD.  After this, you won't be prompted
  428.      for the password any more.
  429.  
  430.           The  GIFPRT  Code  that  is  displayed  on  the registration
  431.      request  form is a simple checksum of  the ROM BIOS (top 8 KBytes
  432.      of  8088 address space).  The first four digits are the checksum,
  433.      and  the last four  digits are the one's  complement of the first
  434.      four.   The password  you are sent  will work on  all IBM PC's or
  435.      compatibles  that  have  the same  ROM  BIOS.   However,  you are
  436.      requested  to purchase one password for each computer you will be
  437.      running GIFPRT on.
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.      Copyright (c) 1990 Edward B. Hamrick                                 Page 7
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      GIFPRT User's Guide                                                  9/3/90
  467.  
  468.  
  469.      3.0  Running GIFPRT
  470.  
  471.           To run GIFPRT, type the following command at a DOS prompt:
  472.  
  473.      GIFPRT [options] [files]
  474.  
  475.           The  various  options that  are  available are  described in
  476.      paragraphs 3.1 through 3.14.  The options and files are processed
  477.      from  left to  right.  Whenever  a file name  is encountered, the
  478.      options  that have  been set during  the left-to-right processing
  479.      are  used  to print  or  display the  file.   Files  may  also be
  480.      specified  with wild-cards,  such as *.GIF.   All  options may be
  481.      entered in either upper or lower case.
  482.  
  483.           If  you want to terminate  GIFPRT, press either control-C or
  484.      control-break.
  485.  
  486.      3.1  Rotate Option        (-R)
  487.  
  488.           You  can use the rotate option to rotate the displayed image
  489.      by 90 degrees, clockwise.  This allows you to print a GIF file on
  490.      a  full sheet of paper, instead of  just the top half.  When this
  491.      option  is in effect, the width  and height options (sections 3.3
  492.      and 3.4) are relative to the unrotated image.
  493.  
  494.      3.2  LCD Option           (-L)
  495.  
  496.           You  can use  the LCD  option to  display GIF  files on many
  497.      laptop  displays.  These displays often  use dark dots to make up
  498.      an  image, instead  of the white  dots normally  used on graphics
  499.      displays.
  500.  
  501.      3.3  Width Option         (-W)
  502.  
  503.           You  can use the width option  to widen an image relative to
  504.      its  height.  If you widen an  image, its height will actually be
  505.      reduced,  resulting  in  a  "wider  looking"  image.    You won't
  506.      normally  have to use  this option.  GIFPRT  assumes that the GIF
  507.      file contains a single screen image, and tries to fit this to the
  508.      display  adapter  or printer  resolution  automatically.   The -W
  509.      option  should  only  be  use  to  augment  the  automatic sizing
  510.      performed  by GIFPRT.  Images that are widened are still centered
  511.      on the screen.
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.      Copyright (c) 1990 Edward B. Hamrick                                 Page 8
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      GIFPRT User's Guide                                                  9/3/90
  533.  
  534.  
  535.      3.4  Height Option        (-H)
  536.  
  537.           You  can use the height option  to increase the height of an
  538.      image  relative to its width.   If you heighten  an image that is
  539.      printed,  it will be printed on a  longer strip of paper.  If you
  540.      heighten  an image that will be  displayed on a graphics adapter,
  541.      its width will actually be reduced.  This option is useful if you
  542.      are  displaying a GIF file on  some laptops with screens that are
  543.      much  wider  than they  are tall.   For  instance, using  the -H2
  544.      option will usually make images have the proper aspect ratio on a
  545.      Toshiba  T1000  laptop.   Note that  you  can use  the -H  and -W
  546.      options  together to scale an image by a non-integral value.  For
  547.      instance,  if you want to multiply the height by 5/4, use the -H5
  548.      -W4  options.  Images  that are heightened  are still centered on
  549.      the screen.
  550.  
  551.      3.5  Brightness Option    (-B)
  552.  
  553.           You  can use the brightness option to increase the intensity
  554.      of  a GIF file.  This is sometimes useful when printing on 24-pin
  555.      printers,  when the image is too dark,  or when you want to avoid
  556.      wearing out the print ribbon.  The normal brightness option is 5,
  557.      the  brightest setting is 9, and the  darkest is 1.  A brightness
  558.      of 9 increases the minimum intensity to 80% of the maximum, and a
  559.      brightness  of 1  decreases the maximum  intensity to  20% of the
  560.      minimum.  A brightness of 5 does not alter the image.
  561.  
  562.      3.6  Contrast Option      (-C)
  563.  
  564.           You can use the contrast option to change the contrast in an
  565.      image.  This is primarily useful for adjusting for dot overlap on
  566.      printed images.  Normal contrast is 1, and contrast values can go
  567.      up  to 9.   A contrast of 5  does not alter  the image, and gamma
  568.      functions of 1.25, 1.5, 2.0, and 3.0 are used for contrasts of 6,
  569.      7,  8, and 9 respectively.  Contrasts of 1, 2, 3, and 4 use gamma
  570.      functions which are the mirror images of 9, 8, 7, and 6.
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.      Copyright (c) 1990 Edward B. Hamrick                                 Page 9
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      GIFPRT User's Guide                                                  9/3/90
  599.  
  600.  
  601.      3.7  Graphics Type Option (-G)
  602.  
  603.           You  can use the graphics type  option to select the type of
  604.      graphics  adapter and display  mode.  The  table below contains a
  605.      list of supported  graphics types, resolutions, number of colors,
  606.      adapters supported, and CRTs supported.
  607.  
  608.      Type      Resolution     Colors    Adapters       CRT Types
  609.      ----      ----------     ------    ---------      -----------
  610.      -G0        80 x  50         2      M C E V H      m  c  e  a
  611.      -G1       160 x 100         2        C               c
  612.      -G2       160 x 175         2      M       H      m
  613.      -G3       320 x 200         2        C E V           c  e  a
  614.      -G4       640 x 200         2        C E V           c  e  a
  615.      -G5       640 x 350         2          E V        m     e  a
  616.      -G6       640 x 480         2            V                 a
  617.      -G7       720 x 348         2              H      m
  618.      -G8       320 x 200         4        C E V           c  e  a
  619.      -G9       160 x 100         5        C               c
  620.      -G10      160 x 175         5      M       H      m
  621.      -G11       80 x  50        16        C E V           c  e  a
  622.      -G12      160 x 100        16        C               c
  623.      -G13      640 x 200        16          E V           c  e  a
  624.      -G14      640 x 350        16          E V              e  a
  625.      -G15      320 x 200       256            V                 a
  626.       
  627.      Codes:    M    MDA - Monochrome Display Adapter
  628.                C    CGA - Color Graphics Adapter
  629.                E    EGA - Enhanced Graphics Adapter
  630.                V    VGA - Video Graphics Array
  631.                H    HGC - Hercules Graphics Card
  632.       
  633.                m    monochrome display       350 lines
  634.                c    color display            200 lines
  635.                e    enhanced color display   350 lines
  636.                a    analog display           480 lines
  637.  
  638.           You  can  display this  list of  graphics modes  from within
  639.      GIFPRT by typing "GIFPRT -G?".
  640.  
  641.      3.8  Snow Checking Option (-M)
  642.  
  643.           You  may want to use  this option if you  have a CGA display
  644.      adapter  that looks "snowy" when images are displayed.  Using the
  645.      -M1  option  will eliminate  the "snow",  but the  display update
  646.      speed  will be slower.  The default  mode of GIFPRT is the faster
  647.      update speed - no snow checking.
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.      Copyright (c) 1990 Edward B. Hamrick                                Page 10
  659.  
  660.  
  661.  
  662.  
  663.  
  664.      GIFPRT User's Guide                                                  9/3/90
  665.  
  666.  
  667.      3.9  Printer Type Option  (-P)
  668.  
  669.           You  can use the  printer type option to  select the type of
  670.      printer  you want  to use.   The  available printer  types, their
  671.      option  numbers, number of print head pins used, resolutions, and
  672.      whether  the  image fills  the page  are  described in  the table
  673.      below.   Modes 5 through 8 are useful for getting a quick preview
  674.      of  what a  printout will  look like.   Use  these modes  to test
  675.      contrast and brightness settings for modes 1 through 4.
  676.  
  677.      Option    Type      Pins      Horizontal     Vertical       Full
  678.      Code                          Resolution     Resolution     Page
  679.      ------    ---       ----      ----------     ----------     ----
  680.      -P1       Epson       8        60 dpi         72 dpi        Yes
  681.      -P2       Epson       8       120 dpi         72 dpi        Yes
  682.      -P3       Epson      24       180 dpi        216 dpi        Yes
  683.      -P4       IBM        24       180 dpi        216 dpi        Yes
  684.      -P5       Epson       8        60 dpi         72 dpi        No
  685.      -P6       Epson       8       120 dpi         72 dpi        No
  686.      -P7       Epson      24       180 dpi        216 dpi        No
  687.      -P8       IBM        24       180 dpi        216 dpi        No
  688.  
  689.           You  can  display a  list  of available  printer  modes from
  690.      within GIFPRT by typing "GIFPRT -P?".
  691.  
  692.      3.10 Slide Show Option    (-S)
  693.  
  694.           The  slide  show option  is used  to continuously  display a
  695.      group  of GIF  files on the  screen.   When the last  GIF file is
  696.      displayed,  GIFPRT starts over with the first GIF file.  Normally
  697.      GIFPRT  beeps and  waits for  a keypress  after displaying  a GIF
  698.      file.    With  the slide  show  option, no  keypress  is required
  699.      between GIF files.
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.      Copyright (c) 1990 Edward B. Hamrick                                Page 11
  725.  
  726.  
  727.  
  728.  
  729.  
  730.      GIFPRT User's Guide                                                  9/3/90
  731.  
  732.  
  733.      3.11 Output Option        (-O)
  734.  
  735.           The  output option is used to  either change the print width
  736.      for  printouts, or  to change the  color palette  for CGA 4-color
  737.      displays (mode -G8).
  738.  
  739.           When  displaying a file  using the -P  option, the -O option
  740.      will set the width of the printout, in dots.  For instance, -O120
  741.      will  make  the printout  120  dots across.    The length  of the
  742.      printout will be affected by the -W, -H, and -R options.
  743.  
  744.           When  displaying a file using the  -G8 option, the -O option
  745.      will  set the color palette that is  used.  The first part of the
  746.      option  is the background color, and the second part is the color
  747.      palette.   For instance, if you  want a background color of light
  748.      magenta  (13), and a  light green/pink/yellow palette  (3), use -
  749.      O133.
  750.  
  751.      Palette        Description
  752.      -------        -----------------
  753.      0              Cyan/Magenta/White
  754.      1              Green/Red/Brown
  755.      2              Light Cyan/Light Magenta/Bright White
  756.      3              Light Green/Pink/Yellow
  757.  
  758.      Background     Description
  759.      ----------     -----------
  760.      0              Black
  761.      1              Blue
  762.      2              Green
  763.      3              Cyan
  764.      4              Red
  765.      5              Magenta
  766.      6              Brown
  767.      7              White
  768.      8              Gray
  769.      9              Light Blue
  770.      10             Light Green
  771.      11             Light Cyan
  772.      12             Pink
  773.      13             Light Magenta
  774.      14             Yellow
  775.      15             Bright White
  776.  
  777.      3.12 Dithering Option     (-D)
  778.  
  779.           The  dithering option can be  used to disable dithering, and
  780.      to  display  the closest  available colors.   This  option allows
  781.      quicker  viewing  of  GIF files,  and  sometimes  produces better
  782.      looking images of cartoon-like GIF files. The -D0 option disables
  783.      dithering,  and the  -D1 option  enables dithering.   The default
  784.      option is dithering enabled.
  785.  
  786.  
  787.  
  788.  
  789.  
  790.      Copyright (c) 1990 Edward B. Hamrick                                Page 12
  791.  
  792.  
  793.  
  794.  
  795.  
  796.      GIFPRT User's Guide                                                  9/3/90
  797.  
  798.  
  799.      3.13 Keep Image Option    (-K)
  800.  
  801.           The keep image option can be used to leave a displayed image
  802.      on  the screen  when GIFPRT  exits.   Normally GIFPRT  erases the
  803.      screen   and  restores  the  original  display  mode  upon  exit.
  804.      However,  if you are invoking GIFPRT from a batch (.BAT) file, or
  805.      starting  it  from within  another program,  you can  prevent the
  806.      restoration of the original display mode by using the -K option.
  807.  
  808.      3.14 Quiet Option         (-Q)
  809.  
  810.           Normally  GIFPRT  beeps  and  waits  for  a  keypress  after
  811.      displaying  a GIF file.  If the quiet option is specified, GIFPRT
  812.      will not beep before waiting for a keypress between GIF files.
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.      Copyright (c) 1990 Edward B. Hamrick                                Page 13
  857.  
  858.  
  859.  
  860.  
  861.  
  862.      GIFPRT User's Guide                                                  9/3/90
  863.  
  864.  
  865.      4.0  Customizing GIFPRT
  866.  
  867.           If you have a printer that isn't supported by the -P option,
  868.      or  if you want to use a  different print mode, you can customize
  869.      your  version of GIFPRT  by editing the  files GIFPRT.PR1 through
  870.      GIFPRT.PR8.   The most likely modification you might want to make
  871.      is  to change the vertical resolution of the printer from 72 dots
  872.      per  inch to 60 dots per inch.  If the vertical resolution in the
  873.      GIFPRT.PR?  file  don't quite  match that  of your  printer, then
  874.      images  that contain circles will  be printed looking like images
  875.      containing  ovals, though  the ovals  won't differ  all that much
  876.      from circles.
  877.  
  878.           The   printer  description  files  contain  7  lines.    For
  879.      instance,  the file GIFPRT.PR1 contains a description of an Epson
  880.      single density printer.  The contents of this file are:
  881.  
  882.  
  883.           nam EpsonSingleDensity
  884.           pin 8
  885.           dpi 60 72
  886.           dim 480 640
  887.           ini 0
  888.           lin 9 27 75 -3 -2 -1 27 74 24 13
  889.           trm 1 12
  890.  
  891.           Each  line begins with a three-letter keyword.  Don't change
  892.      the  order of  the lines  or the  first three  characters on each
  893.      line.   The first line is the name of the print mode.  The second
  894.      line  contains the number  of pins used in  printing (this is the
  895.      number of bits sent to the printer per column).  The next line is
  896.      the  resolution  of the  printer in  the horizontal  and vertical
  897.      directions, in dots per inch.  The next line is the dimensions of
  898.      the print area horizontally and vertically, in dots (the vertical
  899.      dimension  is actually  ignored currently). The  last three lines
  900.      describe   the   string  to   be   sent  to   the   printer  upon
  901.      initialization,  per-line, and on termination.   The first number
  902.      is  the number  of characters in  the string  and each subsequent
  903.      number  is  the numeric  value  of the  code  to be  sent  to the
  904.      printer.   If the  string contains the number  -1, then the codes
  905.      for  the graphics  data for  a single  line will  be sent  to the
  906.      printer at that point.
  907.  
  908.           For  instance, if you have a Panasonic KX-P1124 printer, and
  909.      you  want to change  the vertical dots-per-inch,  change the line
  910.      beginning with dpi to read:
  911.  
  912.           dpi 60 60
  913.  
  914.           In  the line beginning with "lin", the values -1, -2, and -3
  915.      are used as placeholders for the image data, the most significant
  916.      byte  of the image  width, and the least  significant byte of the
  917.      image width, respectively.
  918.  
  919.  
  920.  
  921.  
  922.      Copyright (c) 1990 Edward B. Hamrick                                Page 14
  923.  
  924.  
  925.  
  926.  
  927.  
  928.      GIFPRT User's Guide                                                  9/3/90
  929.  
  930.  
  931.      5.0  Sample GIFPRT Commands
  932.  
  933.      A>GIFPRT GIFPRT.GIF           This   command  loads   the  GIFPRT
  934.                                    program  from floppy  disk drive A.
  935.                                    GIFPRT   then  read  the  GIF  file
  936.                                    GIFPRT.GIF from drive A, and prints
  937.                                    it   to  an  Epson  compatible  dot
  938.                                    matrix printer.
  939.  
  940.      A>GIFPRT -G8 GIFPRT.GIF       This command displays GIFPRT.GIF on
  941.                                    a CGA graphics adapter in 320 x 200
  942.                                    4 color mode.
  943.  
  944.      A>GIFPRT -P2 GIFPRT.GIF       This   command   prints  GIFPRT.GIF
  945.                                    using      double-density     Epson
  946.                                    graphics.
  947.  
  948.      A>GIFPRT -P2 -R *.GIF         This  command prints  all GIF files
  949.                                    in   the  current  directory  using
  950.                                    double-density Epson graphics.  The
  951.                                    images   are  rotated   90  degrees
  952.                                    counterclockwise before printing.
  953.  
  954.      A>GIFPRT -G4 -L -H2 D:\*.GIF  This command displays all GIF files
  955.                                    on  the  D: drive  on  the graphics
  956.                                    adapter.   The  files are displayed
  957.                                    in  CGA 640  x 200 x  2 color mode,
  958.                                    and  are stretched in  height.  The
  959.                                    display  is  formatted  for  an LCD
  960.                                    display.   This  command works well
  961.                                    on a Toshiba T1000 laptop.
  962.  
  963.      A>GIFPRT -S -G14 *.GIF        This command displays all GIF files
  964.                                    in  the current directory on an EGA
  965.                                    adapter  in 640  x 350  mode, in 16
  966.                                    different colors.  These files will
  967.                                    be   displayed  continuously  in  a
  968.                                    slide show.  To terminate the slide
  969.                                    show,  press control-C  or control-
  970.                                    break.
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.      Copyright (c) 1990 Edward B. Hamrick                                Page 15
  989.  
  990.  
  991.  
  992.  
  993.  
  994.      GIFPRT User's Guide                                                  9/3/90
  995.  
  996.  
  997.      6.0  Changes from Previous Version
  998.  
  999.           Version  3.2 of GIFPRT corrects several bugs, and adds a few
  1000.      new features.  The bugs that were corrected are:
  1001.  
  1002.      o    After  displaying a GIF file using -G7 (Hercules 720 x 348),
  1003.           the display is reset to the starting display mode.
  1004.  
  1005.      o    If  a printer is not attached  or is powered off, the system
  1006.           will  only  delay  30  seconds when  attempting  to  print a
  1007.           registration  form.    Version  3.1  would  sometimes  delay
  1008.           indefinitely.
  1009.  
  1010.      o    The  paper is positioned  at the top of  the next page after
  1011.           printing the registration form.
  1012.  
  1013.      o    Fixed brightness (-B) option.
  1014.  
  1015.      The new features that were added are:
  1016.  
  1017.      o    Added built-in help screens for -G? and -P?
  1018.  
  1019.      o    Added options to control width of printout and to set CGA 4-
  1020.           color palette (-O).
  1021.  
  1022.      o    Added  option to  disable dithering and  use a closest-color
  1023.           algorithm (-D).
  1024.  
  1025.      o    Added gamma correction to contrast option (-C)
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.      Copyright (c) 1990 Edward B. Hamrick                                Page 16
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.      GIFPRT User's Guide                                                  9/3/90
  1061.  
  1062.  
  1063.      7.0  Error Messages
  1064.  
  1065.           This  section  contains a  list of  all error  messages that
  1066.      might  be produced by the GIFPRT program, the cause of each error
  1067.      message, and what you can do to correct each error.
  1068.  
  1069.           MS-DOS  or PC-DOS will display the following message if your
  1070.      computer  doesn't  have  enough  free memory  to  run  the GIFPRT
  1071.      program. You will need approximately 128,000 bytes of free memory
  1072.      to  run GIFPRT.   You may be  able to obtain  more free memory by
  1073.      removing   some  memory  resident  programs  or  by  reducing  or
  1074.      eliminating  the amount of  memory dedicated to a  RAM disk.  You
  1075.      can  get information about how much free memory you have by using
  1076.      the MS-DOS or PC-DOS utility program CHKDSK.  Please refer to the
  1077.      MS-DOS  or PC-DOS  documentation for  details on  how to  run the
  1078.      CHKDSK program.
  1079.  
  1080.      ..........................................................................
  1081.  
  1082.      Program too big to fit in memory
  1083.      ..........................................................................
  1084.  
  1085.           You  will see the  following error message  if you specify a
  1086.      GIF file that can't be found.  Check to see that the file exists,
  1087.      and that it can be read.
  1088.  
  1089.      ..........................................................................
  1090.  
  1091.      Sorry, can't open file <name> for reading.
  1092.      ..........................................................................
  1093.  
  1094.           You  will see the  following error message  if you specify a
  1095.      GIF  file name that does not have  the right format.  The file is
  1096.      either corrupted, or is a different format.
  1097.  
  1098.      ..........................................................................
  1099.  
  1100.      Sorry, <name> is not a valid GIF file
  1101.      ..........................................................................
  1102.  
  1103.           You  will  see the  following error  message if  there isn't
  1104.      enough  free memory to read a GIF  file into memory.  Try to free
  1105.      some memory, and try the command again.  You will need at least N
  1106.      x M bytes of memory to load a GIF file.
  1107.  
  1108.      ..........................................................................
  1109.  
  1110.      Sorry, can't allocate enough memory for <N> x <M> image
  1111.      ..........................................................................
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.      Copyright (c) 1990 Edward B. Hamrick                                Page 17
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.      GIFPRT User's Guide                                                  9/3/90
  1127.  
  1128.  
  1129.           You  will  see the  following error  message if  there isn't
  1130.      enough  free memory to  store one line  of printer data.   Try to
  1131.      free some memory, and try the command again.
  1132.  
  1133.      ..........................................................................
  1134.  
  1135.      Sorry, can't allocate enough memory for printer buffer
  1136.      ..........................................................................
  1137.  
  1138.           You  will  see the  following error  message if  there isn't
  1139.      enough  free memory to store one screen  of display data.  Try to
  1140.      free some memory, and try the command again.  You can also try to
  1141.      use lower-resolution display modes.
  1142.  
  1143.      ..........................................................................
  1144.  
  1145.      Sorry, can't allocate enough memory for screen buffer
  1146.      ..........................................................................
  1147.  
  1148.           You will see the following error message if there isn't even
  1149.      enough free memory for GIFPRT to set up some internal data areas.
  1150.      If  this happens, you will need to  free up enough memory for the
  1151.      internal data, approximately 8 KBytes.
  1152.  
  1153.      ..........................................................................
  1154.  
  1155.      Sorry, not enough memory to start up
  1156.      ..........................................................................
  1157.  
  1158.           You  will see  the following error  message if  you enter an
  1159.      invalid password.  Either this password has been mis-typed, or it
  1160.      is  for a computer with a different  ROM BIOS.  Check to see that
  1161.      the  computer has  the same machine  code as  when you originally
  1162.      ordered  a GIFPRT password.  If not, please refer to instructions
  1163.      on how to order a GIFPRT password.  Note that you can ignore this
  1164.      error message if you are evaluating GIFPRT.
  1165.  
  1166.      ..........................................................................
  1167.  
  1168.      Sorry, this password is not valid.  Please check to see that
  1169.      you've entered it correctly (check for interchanged (0/D & 8/B).
  1170.      ..........................................................................
  1171.  
  1172.           You  will see the following error  message if the printer is
  1173.      out  of paper while you  are trying to print.   Insert paper into
  1174.      the printer, put the printer on-line, and press "C".  If you want
  1175.      to quit, press "A".
  1176.  
  1177.      ..........................................................................
  1178.  
  1179.      Printer is out of paper, press C to continue, A to abort.
  1180.      ..........................................................................
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.      Copyright (c) 1990 Edward B. Hamrick                                Page 18
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.      GIFPRT User's Guide                                                  9/3/90
  1193.  
  1194.  
  1195.           You  will see the following error  message if the printer is
  1196.      off-line  while you are trying to print.  Put the printer on-line
  1197.      and press "C".  If you want to quit, press "A".
  1198.  
  1199.      ..........................................................................
  1200.  
  1201.      Printer is off-line. Press C to continue, A to abort.
  1202.      ..........................................................................
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.      Copyright (c) 1990 Edward B. Hamrick                                Page 19
  1253.  
  1254.  
  1255.